*{
    box-sizing: border-box;
}

@media screen and (max-width: 320px){
    body,html{
        width: 320px !important;
    }
    .navbar{
        width: 320px !important;
    }
}

.navbar{
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 9999;
    &>div{
        width: 100%;
        height: 100%;
        background-color: #111;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 140px 0 120px;
        &>div:nth-child(1){
            float: left;
            font-size: 24px;
            width: max-content;
            height: max-content;
            margin-left: 20px;
        }
        .nav{
            float: right;
            height: 60px;
            font-size: 14px;
            div{
                float: left;
                width: max-content;
                height: 100%;
                padding: 0 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                a{
                    position: relative;
                    width: max-content;
                    color: white;
                    height: 75%;
                    padding: 0 5px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-decoration: none;
                    text-transform: uppercase;
                    &::before{
                        position: absolute;
                        left: 50%;
                        bottom: 0;
                        content: '';
                        width: 0;
                        height: 2px;
                        background-color: #292929;
                        transition: .2s linear;
                    }
                    &:hover{
                        &::before{
                            width: 100%;
                            left: 0;
                        }
                    }
                }
            }
        }
    }
    input{
        display: none;
    }
    #ck1:checked{
        &~label{
            .minNav{
                div:nth-child(1){
                    transform-origin: center;
                    transform: rotate(45deg);
                    top: 50%;
                    width: 50%;
                    left: 25%;
                }
                div:nth-child(2){
                    opacity: 0;
                }
                div:nth-child(3){
                    transform-origin: center;
                    transform: rotate(-45deg);
                    top: 50%;
                    width: 50%;
                    left: 25%;
                }
            }
        }
    }
    label{
        position: absolute;
        top: calc(50% - 30px);
        right: 30px;
        display: block;
        width: 60px;
        height: 60px;
        display: none;
        .minNav{
            position: relative;
            width: 100%;
            height: 100%;
            div{
                position: absolute;
                width: 60%;
                height: 5%;
                left: 20%;
                background-color: white;
                transition: .3s linear;
            }

            div:nth-child(1){
                top: 33%;
            }

            div:nth-child(2){
                top: 48.5%;
            }

            div:nth-child(3){
                top: 64%;
            }
        }

        .minNav:hover{
            div{
                background-color: orange;
            }
        }
    }
}

@media screen and (max-width: 950px) {
    .navbar{
        div{
            padding: 0 10px 0 20px;
        }
    }
}

@media screen and (max-width: 768px) {
    .navbar{
        &>input:checked{
            &+div{
                .nav{
                    display: flex;
                }
            }
        }
        &>div{
            padding: 0 0 0 10px;
            .nav{
                display: none;
                position: absolute;
                top: 100px;
                left: 0;
                width: 100%;
                height: max-content;
                align-items: center;
                justify-content: space-between;
                flex-direction: column;
                background-color: #111;
                div{
                    width: 100%;
                    height: 30px;
                    margin: 0;
                }
            } 
        }
        
        label{
            display: block;
        }
    }
}

.home{
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111;
    &>div{
        width: 100%;
        height: auto;
        text-align: center;
        h1{
            color: rgb(153, 153, 153);
            font-size: 44px;
            text-transform: uppercase;
            span{
                margin: 0 5px;
            }
            .color{
                color: #fcac45;
            }
        }
        p{
            font-size: 20px;
            color: rgba(255, 255, 255, 0.749);
        }
    }
    a{
        position: absolute;
        bottom: 40px;
        left: calc(50% - 20px);
        display: block;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
        border: 1px solid #c3c3c3;
        text-decoration: none;
        color: #c3c3c3;
        transition: .2s linear;
        &:hover{
            box-shadow: 0 10px 20px white;
            transform: translateY(-10px);
        }
    }
}

@media screen and (max-width: 425px){
    .home{
        h1{
            font-size: 25px !important;
        }
        p{
            font-size: 12px !important;
        }
    }

    .title-background{
        font-size: 34px !important;
    }
}

.about{
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 160px 0 0 100px;
    overflow: hidden;
    img{
        display: block;
        width: 45%;
        float: left;
    }
    &>div{
        width: 38%;
        float: left;
        padding-bottom: 80px;
        .title{
            padding-bottom: 15px;
            &>*{
                margin-bottom: 10px;
            }
            p{
                font-size: 20px;
                text-transform: uppercase;
                color: rgb(99, 99, 99);
            }
            h1{
                font-weight: 100;
                color: rgb(34, 34, 34);
                text-transform: uppercase;
                span{
                    font-weight: 900;
                }
            }
            div{
                width: 90px;
                height: 5px;
                background-color: #fcac45;
                margin: 0;
            }
        }
        .content1{
            margin: 15px 0 30px;
            font-size: 18px;
            color: rgb(108, 108, 108);
        }
        .content2{
            font-size: 18px;
            color: #7b7b7b;
            div{
                font-weight: 900;
                span{
                    font-weight: 100;
                    font-style: italic;
                    color: #696969;
                }
                .li{
                    width: 15px;
                    height: 15px;
                    float: left;
                    border-radius: 50%;
                    border: 1px solid #7b7b7b;
                    padding: 2px;
                    margin: 4px 8px 0 0;
                    &::before{
                        content: '';
                        display: block;
                        width: 100%;
                        height: 100%;
                        background-color: rgb(108, 108, 108);
                        border-radius: 50%;
                    }
                }
            }
        }
        .button{
            width: 200px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            border: #ababab 1px solid;
            color: #ababab;
            margin-top: 40px;
            transition: .3s linear;
            border-radius: 5px;
            img{
                width: 15px;
                margin-right: 10px;
            }
            &:hover{
                cursor: pointer;
                box-shadow: 0 5px 5px gray;
                transform: translateY(-5px);
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    .about{
        padding: 100px 0 0 100px;
        &>img{
            display: none;
        }
        div{
            width: 100%;
        }
    }
}
// @media screen and (max-width: 900px) {
//     .about{
//         padding: 100px 0 0 100px;
//         &>img{
//             display: none;
//         }
//         div{
//             width: 100%;
//         }
//     }
// }
@media screen and (max-width: 500px) {
    .about{
        padding: 100px 0 0 20px;
        &>img{
            display: none;
        }
        div{
            width: 100%;
        }
    }
}

// 每一块的标题
.title-background{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 100;
    font-size: 44px;
    text-align: center;
    span{
        font-weight: 900;
    }
    img{
        margin-top: 10px;
    }
}
// team
.team{
    width: 100%;
    height: auto;
    background-color: #111;
    padding: 160px 0 50px 0;
    color: white;
    input{
        display: none;
        &:nth-child(1){
            &:checked{
                &~.content{
                    .team-nav{
                        label:nth-child(1){
                            background-color: #fcac45;
                        }
                    }
                    .swiper{
                        &>div{
                            margin-left: 0;
                        }
                    }
                }
            }
        }
        &:nth-child(2){
            &:checked{
                &~.content{
                    .team-nav{
                        label:nth-child(2){
                            background-color: #fcac45;
                        }
                    }
                    .swiper{
                        &>div{
                            margin-left: -100%;
                        }
                    }
                }
            }
        }
        &:nth-child(3){
            &:checked{
                &~.content{
                    .team-nav{
                        label:nth-child(3){
                            background-color: #fcac45;
                        }
                    }
                    .swiper{
                        &>div{
                            margin-left: -200%;
                        }
                    }
                }
            }
        }
    }

    .content{
        margin-top: 100px;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        .swiper{
            position: relative;
            width: 75%;
            overflow: hidden;
            &>div{
                width: 300%;
                height: auto;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                transition: .4s linear;
                &>div{
                    width: calc(100% / 3);
                    height: auto;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: space-between;
                    .img{
                        width: 20%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: space-between;
                        img{
                            width: 100px;
                            height: 100px;
                            border-radius: 50%;
                            margin-bottom: 15px;
                        }
                        div{
                            width: 100%;
                            height: auto;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            justify-content: start;
                            p{
                                text-align: center;
                                &:nth-child(1){
                                    font-size: 20px;
                                    font-weight: 900;
                                }
                                &:nth-child(2){
                                    font-size: 12px;
                                    font-weight: 100;
                                    margin-bottom: 18px;
                                }
                                &:nth-child(3){
                                    font-size: 14px;
                                    font-weight: 100;
                                }
                            }
                        }
                    }
                }
            }
        }

        .team-nav{
            margin-top: 100px;
            label{
                display: block;
                width: 15px;
                height: 15px;
                float: left;
                background-color: white;
                margin: 0 10px;
                &:hover{
                    cursor: pointer;
                    background-color: #fcac45;
                }
            }
        }
    }
}

@media screen and (max-width: 768px) {
    .team{
        .content{
            .swiper{
                div{
                    div{
                        flex-direction: column;
                        .img{
                            width: 100%;
                            flex-direction: row;
                            justify-content: center;
                            margin-bottom: 50px;
                            div{
                                width: 30%;
                                margin-left: 20px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 425px) {
    .team{
        .content{
            .swiper{
                div{
                    div{
                        flex-direction: column;
                        .img{
                            width: 100%;
                            flex-direction: row;
                            justify-content: center;
                            margin-bottom: 50px;
                            div{
                                width: 50%;
                                margin-left: 20px;
                            }
                        }
                    }
                }
            }
        }
    }
}

.services{
    width: 100%;
    padding: 160px 0 100px 0;
    .content1{
        width: 90%;
        text-align: center;
        margin: 50px auto;
    }
    .content2{
        width: 90%;
        margin: 150px auto 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        .img{
            width: 20%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            img{
                width: 90px;
                border-radius: 50%;
                margin-bottom: 15px;
                border: 5px solid #fcac45;
            }
            div{
                width: 100%;
                height: auto;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: start;
                p{
                    text-align: center;
                    &:nth-child(1){
                        font-size: 22px;
                        font-weight: 900;
                        margin-bottom: 20px;
                    }
                    &:nth-child(2){
                        font-size: 16px;
                        font-weight: 100;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 455px){
    .services{
        .content2{
            margin: 50px auto 0 auto;
            .img{
                img{
                    width: 50px;
                }
                div{
                    p{
                        &:nth-child(1){
                            font-size: 15px;
                        }
                        &:nth-child(2){
                            font-size: 5px;
                        }
                    }
                }
            }
        }
    }
}

// clients
.clients{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: #111;
    color: white;
    padding: 160px 0 100px 0;
    &>input{
        display: none;
        &:nth-child(1){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(1){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: 0;
                    }
                }
            }
        }
        &:nth-child(2){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(2){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: -100%;
                    }
                }
            }
        }
        &:nth-child(3){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(3){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: -200%;
                    }
                }
            }
        }
    }
    .content{
        width: 70%;
        overflow: hidden;
        margin: 80px 0;
        &>div{
            width: 300%;
            transition: .3s linear;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            &>div{
                width: calc(100% / 3);
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                img{
                    width: 18%;
                    margin-left: 10px;
                }
            }
        }
    }

    .clients-nav{
        label{
            width: 15px;
            height: 15px;
            float: left;
            margin-left: 30px;
            background-color: white;
            &:hover{
                background-color: #fcac45;
            }
        }
    }
}
@media screen and (max-width: 768px) {
    .clients{
        .content{
            width: 90%;
        }
    }
}

// portfolio
.portfolio{
    padding: 160px 0 50px 0;
    width: 100%;
    .content1{
        width: 90%;
        margin: 30px auto;
        text-align: center;
        font-style: italic;
        color: #c3c3c3;
        font-size: 13px;
    }
    .content2{
        margin: 80px auto 0 auto;
        width: 90%;
        .portfolio-nav{
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            &>div{
                width: max-content;
                height: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 18px;
                &:nth-child(2){
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    div{
                        border-right: 1px solid #7b7b7b;
                        padding: 0 10px;
                        color: #7b7b7b;
                        &:hover{
                            cursor: pointer;
                        }
                        &:nth-last-child(1){
                            border: none;
                        }
                    }
                }
                &:nth-child(3){
                    position: absolute;
                    right: 20px;
                    display: none;
                    align-items: center;
                    justify-content: space-around;
                }
            }
        }
        .image{
            width: 100%;
            .row{
                width: 100%;
                height: 50px;
                height: auto;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: flex-start;
                margin: 20px 0;
                .img{
                    position: relative;
                    float: left;
                    width: 22%;
                    height: auto;
                    overflow: hidden;
                    margin-right: 4%;
                    background-color: #111;
                    &:nth-last-child(1){
                        margin-right: 0;
                    }
                    img{
                        width: 100%;
                    }
                    .hover{
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 100%;
                        left: 0;
                        z-index: 1;
                        background-color: #111;
                        opacity: .8;
                        transition: .2s linear;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        &>div{
                            color: white;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            &:nth-child(1){
                                font-size: 16px;
                            }
                            &:nth-child(2){
                                font-size: 12px;
                            }
                            &:nth-child(3){
                                position: relative;
                                margin-top: 20px;
                                border-radius: 50%;
                                width: 30px;
                                height: 30px;
                                border: 1px solid #fcac45;
                                &:hover{
                                    cursor: pointer;
                                }
                                div{
                                    &:nth-child(1){
                                        position: absolute;
                                        top: calc(50% - 1px);
                                        left: 15%;
                                        width: 70%;
                                        height: 2px;
                                        background-color: #fcac45;
                                    }
                                    &:nth-child(2){
                                        position: absolute;
                                        top: calc(50% - 1px);
                                        left: 15%;
                                        width: 70%;
                                        height: 2px;
                                        transform-origin: center center;
                                        transform: rotate(90deg);
                                        background-color: #fcac45;
                                    }
                                }
                            }
                        }
                    }
                    &:hover{
                        .hover{
                            top: 0;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 768px) {
    .portfolio{
        .content2{
            .portfolio-nav{
                div{
                    &:nth-child(2){
                        display: none;
                    }
                    &:nth-child(3){
                        display: flex;
                    }
                }
            }
            .image{
                .row{
                    align-items: center;
                    justify-content: center;
                    .img{
                        width: 45%;
                        margin: 0;
                        &:nth-child(2n+1){
                            margin-right: 10%;
                            margin-left: -5%;
                        }
                        &:nth-child(3),
                        &:nth-child(4){
                            margin-top: 20px;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 320px) {
    .portfolio{
        .content2{
            .image{
                .row{
                    align-items: center;
                    justify-content: center;
                    .img{
                        width: 100%;
                        margin: 0 !important;
                        margin-top: 20px !important;
                        &:nth-child(1){
                            margin-top: 0 !important;
                        }
                    }
                }
            }
        }
    }
}

// testimonials
.testimonials{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: #111;
    color: white;
    padding: 160px 0 100px 0;
    &>input{
        display: none;
        &:nth-child(1){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(1){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: 0;
                    }
                }
            }
        }
        &:nth-child(2){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(2){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: -100%;
                    }
                }
            }
        }
        &:nth-child(3){
            &:checked{
                &~.clients-nav{
                    label{
                        &:nth-child(3){
                            background-color: #fcac45;
                        }
                    }
                }
                &~.content{
                    &>div{
                        margin-left: -200%;
                    }
                }
            }
        }
    }
    .content{
        width: 70%;
        overflow: hidden;
        margin: 80px 0 30px 0;
        &>div{
            width: 300%;
            transition: .3s linear;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            &>div{
                width: calc(100% / 3);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-around;
                div{
                    text-align: center;
                    &:nth-child(2){
                        margin-top: 80px;
                    }
                }
            }
        }
    }

    .clients-nav{
        label{
            width: 15px;
            height: 15px;
            float: left;
            margin-left: 30px;
            background-color: white;
            &:hover{
                background-color: #fcac45;
            }
            &:nth-child(1){
                margin-left: 0;
            }
        }
    }
}
@media screen and (max-width: 768px) {
    .clients{
        .content{
            width: 90%;
        }
    }
}

.contact {
    width: 100%;
    height: auto;
    text-align: center;
    padding-bottom: 50px;
    .title {
        padding-top: 80px;
        h1 {
            font-size: 2em;
            text-transform: uppercase;
            font-family: osl;
            background: url(../img/title-background.png) no-repeat center bottom;
            padding-bottom: 40px;
        }
    }
    .content {
        font-size: 1.1em;
        width: 60%;
        margin: 0 auto;
        padding-top: 50px;
        color: #6a6969;
        font-style: italic;
    }
    .push {
        width: 60%;
        height: auto;
        margin: 100px auto 0px;
        text-align: left;
        .top {
            display: flex;
            justify-content: space-between;
            .one {
                width: 48%;
                padding-bottom: 38px;
                .font {
                    padding-bottom: 10px;
                    p {
                        color: #7b7b7b;
                        span {
                            color: red;
                        }
                    }
                }
                .inp {
                    input {
                        height: 40px;
                        width: 100%;
                        padding-left: 10px;
                        font-size: 20px;
                    }
                }
            }
        }
        .bottom {
            .font {
                padding-bottom: 10px;
            p {
                color: #7b7b7b;
                span {
                    color: red;
                }
            }
            }
            .tex {
                textarea {
                    height: 200px;
                    width: 100%;
                    padding: 10px;
                    font-size: 20px;
                }
            }
        }
        .but {
            text-align: right;
            margin: 30px;
            button {
                width: 150px;
                height: 40px;
                background-color: #fcac45;
                border: 0;
                color: white;
                text-transform: uppercase;
                &:hover{
                    cursor: pointer;
                }
            }
        }
    }
}
@media screen and (max-width: 930px) {
    .contact {
        .content {
            width: 85%;
        }
        .push {
            width: 85%;
        }
    }
}
@media screen and (max-width: 630px) {
    .contact {
        .push {
            .top {
                flex-direction: column;
                .one {
                    width: 100%;
                }
            }
        }
    }
}
.foot {
    height: auto;
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: space-around;
    align-items: center;
    .left {
        color: #9f9f9f;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        span {
            font-weight: 900;
        }
    }
    .right {
        width: 260px;
        margin: 26px 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .image {
            border: 3px solid #9f9f9f;
            border-radius: 50%;
            transition: all 0.3s;
        }
        .image:hover {
            box-shadow: 0px 8px 10px #9f9f9f;
            transform: translateY(-5px);
            cursor: pointer;
        }
    }
}
@media screen and (max-width: 800px) {
    .foot {
        padding: 50px 0 100px 0;
        flex-direction: column;
        align-items: center;
        .left{
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 12px;
        }
    }
}